//
//  ImagLabelView.m
//  UI_03homeworkNo02
//
//  Created by dllo on 16/6/7.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ImagLabelView.h"
#import "ActivityImageView.h"
#import "TitleLabel.h"



@implementation ImagLabelView


-(instancetype)initWithFrame:(CGRect)frame withImageView:(NSString *)name withLabelText:(NSString *)text
{
    self = [super initWithFrame:frame];
    if (self) {
        ActivityImageView *image = [[ActivityImageView alloc]initWithFrame:CGRectMake(0, 0, self.frame.size.width / 8, self.frame.size.height) withImageName:name];
        TitleLabel *label = [[TitleLabel alloc]initWithFrame:CGRectMake(self.frame.size.width / 7, 0, self.frame.size.width / 7 * 5, self.frame.size.height) withText:text withFontNumber:14];
        [self addSubview:image];
        [self addSubview:label];
        [image release];
        [label release];
        
    }
    return self;
}




@end
